﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace Wallpaper.Data.Migrations
{
    /// <inheritdoc />
    public partial class UpdateTable : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_RoleMenu_menus_MenuId",
                table: "RoleMenu");

            migrationBuilder.DropForeignKey(
                name: "FK_RoleMenu_roles_RoleId",
                table: "RoleMenu");

            migrationBuilder.DropPrimaryKey(
                name: "PK_wallpaper_and_tags",
                table: "wallpaper_and_tags");

            migrationBuilder.DropPrimaryKey(
                name: "PK_RoleMenu",
                table: "RoleMenu");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "0456f792-07e9-433b-a0c0-63348eb800eb");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "38b9332e-c128-475e-ab7c-926ab199bffd");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "51f6f806-d97e-4dc9-92fb-ffee6b0807a8");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "549916d1-8207-456b-b553-f58fe4af1f92");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "56db9ce0-5957-4f75-82b1-84dda20268e6");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "67c9ebc4-6ddd-48e9-bf1f-9ab04ac8ec12");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "69eab353-82e5-4510-8289-b061029d673c");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "73f06219-6e8b-4bf2-bd62-0b0d30eba629");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "7408ec9d-9ee9-4b88-b6f7-f01cbb9501e5");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "cdf941ff-1227-42a2-864c-4d7592deb576");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "dffcab4b-4ca4-4ec9-afbe-e1062a809010");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "e4ae7e8d-cec1-498c-859d-8e98097a995c");

            migrationBuilder.DeleteData(
                table: "roles",
                keyColumn: "Id",
                keyValue: "8308ca55-8e2e-4d89-8bc7-b1dcccf9b41b");

            migrationBuilder.DeleteData(
                table: "roles",
                keyColumn: "Id",
                keyValue: "e213eaff-1038-438f-aeba-d0eb2445e557");

            migrationBuilder.DeleteData(
                table: "roles",
                keyColumn: "Id",
                keyValue: "ea3815c4-72e6-40e4-bc8c-00d5a71ce32c");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "88430d82-5397-4808-b2c3-50e0a72b6636");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "8bf4d815-5bc6-4d41-babe-9d9a27a4e5eb");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "b3ad11e7-9101-46bd-bcf7-7b54fc0a1d97");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "e4052b6f-ec9b-4712-8e2f-b20b07760c29");

            migrationBuilder.RenameTable(
                name: "wallpaper_and_tags",
                newName: "wallpaper_tags");

            migrationBuilder.RenameTable(
                name: "RoleMenu",
                newName: "role_menus");

            migrationBuilder.AlterColumn<string>(
                name: "RoleId",
                table: "role_menus",
                type: "nvarchar(36)",
                maxLength: 36,
                nullable: false,
                comment: "角色ID",
                oldClrType: typeof(string),
                oldType: "nvarchar(36)");

            migrationBuilder.AlterColumn<string>(
                name: "MenuId",
                table: "role_menus",
                type: "nvarchar(36)",
                maxLength: 36,
                nullable: false,
                comment: "菜单ID",
                oldClrType: typeof(string),
                oldType: "nvarchar(36)");

            migrationBuilder.AlterColumn<bool>(
                name: "IsDeleted",
                table: "role_menus",
                type: "bit",
                nullable: false,
                defaultValue: false,
                comment: "软删除标志",
                oldClrType: typeof(bool),
                oldType: "bit");

            migrationBuilder.AlterColumn<string>(
                name: "Id",
                table: "role_menus",
                type: "nvarchar(max)",
                nullable: true,
                oldClrType: typeof(string),
                oldType: "nvarchar(450)");

            migrationBuilder.AddPrimaryKey(
                name: "PK_wallpaper_tags",
                table: "wallpaper_tags",
                column: "Id");

            migrationBuilder.AddPrimaryKey(
                name: "PK_role_menus",
                table: "role_menus",
                columns: new[] { "RoleId", "MenuId" });

            migrationBuilder.InsertData(
                table: "menus",
                columns: new[] { "Id", "Component", "CreateAt", "Icon", "IsEnabled", "Name", "ParentId", "Path", "Sort", "UpdateAt" },
                values: new object[,]
                {
                    { "37a02ef9-23e0-40f6-af12-1d8913ac0d4f", null, new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1937), "DataLine", true, "数据统计", null, null, 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "3ea3e877-7c9d-4158-b671-1eac55a7ba48", null, new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1900), "Setting", true, "系统管理", null, null, 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "497620cb-0d9b-418e-ba73-06b9cbedcf36", "dashboard/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1877), "House", true, "仪表盘", null, "/dashboard", 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "c2e9bdc6-be4d-4c36-ad28-932c0ac71945", null, new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1925), "Document", true, "内容管理", null, null, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "cfaa92ac-2cac-4c7a-9fac-368f17a8df7e", null, new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1945), "Tools", true, "系统工具", null, null, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) }
                });

            migrationBuilder.InsertData(
                table: "roles",
                columns: new[] { "Id", "CreateAt", "Description", "IsEnabled", "RoleCode", "RoleName", "UpdateAt" },
                values: new object[,]
                {
                    { "756d7b3a-46f0-44d8-8b3f-10542534f64a", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(5864), "系统超级管理员，拥有所有权限", true, "super_admin", "超级管理员", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "81161183-3635-47a8-bb81-06f9bd23e001", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(5885), "负责审核和管理的壁纸的角色", true, "wallpaper_auditor", "壁纸审核员", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "aa1caf86-ab44-4197-b463-8b3e329f017f", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(5882), "系统管理员", true, "admin", "管理员", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) }
                });

            migrationBuilder.InsertData(
                table: "menus",
                columns: new[] { "Id", "Component", "CreateAt", "Icon", "IsEnabled", "Name", "ParentId", "Path", "Sort", "UpdateAt" },
                values: new object[,]
                {
                    { "10506d2a-36f0-4c35-a0b0-e34344cacc4f", "tools/backup/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1956), "DataAnalysis", true, "数据备份", "cfaa92ac-2cac-4c7a-9fac-368f17a8df7e", "/tools/backup", 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "11a967b4-2289-4179-bb1e-50df3973d1df", "tools/log/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1947), "List", true, "系统日志", "cfaa92ac-2cac-4c7a-9fac-368f17a8df7e", "/tools/log", 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "14e108ef-caa2-4733-b8b8-aac1184bf945", "content/category/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1931), "Collection", true, "分类管理", "c2e9bdc6-be4d-4c36-ad28-932c0ac71945", "/content/category", 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "277cb688-abaa-4091-8bb1-b86663c220dd", "system/permission/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1922), "Lock", true, "权限管理", "3ea3e877-7c9d-4158-b671-1eac55a7ba48", "/system/permission", 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "2c02a95d-21cc-44df-a572-9b643ecc9966", "tools/monitor/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1950), "Monitor", true, "系统监控", "cfaa92ac-2cac-4c7a-9fac-368f17a8df7e", "/tools/monitor", 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "2dbc5a5b-3d6f-4a76-98f6-9cac30c7a0b4", "content/article/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1929), "Reading", true, "文章列表", "c2e9bdc6-be4d-4c36-ad28-932c0ac71945", "/content/article", 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "368df1ec-0a1b-4b4a-9c8c-9014d00e18bf", "system/role/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1908), "UserFilled", true, "角色管理", "3ea3e877-7c9d-4158-b671-1eac55a7ba48", "/system/role", 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "66b4e109-d861-4608-9ee5-8dd84730bd8b", "statistics/sales/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1943), "Wallet", true, "销售统计", "37a02ef9-23e0-40f6-af12-1d8913ac0d4f", "/statistics/sales", 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "9812bcd0-3249-4c01-8dd1-5a09333237c1", "statistics/visit/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1940), "View", true, "访问统计", "37a02ef9-23e0-40f6-af12-1d8913ac0d4f", "/statistics/visit", 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "b09e957b-4da7-4226-91f9-79770bbb9a02", "system/user/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1904), "User", true, "用户管理", "3ea3e877-7c9d-4158-b671-1eac55a7ba48", "/system/user", 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "b70f521b-5853-4421-bb9a-54fe4256f144", "content/tag/index", new DateTime(2025, 10, 10, 0, 51, 25, 892, DateTimeKind.Local).AddTicks(1935), "PriceTag", true, "标签管理", "c2e9bdc6-be4d-4c36-ad28-932c0ac71945", "/content/tag", 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) }
                });

            migrationBuilder.CreateIndex(
                name: "IX_RoleMenu_IsDeleted",
                table: "role_menus",
                column: "IsDeleted");

            migrationBuilder.AddForeignKey(
                name: "FK_role_menus_menus_MenuId",
                table: "role_menus",
                column: "MenuId",
                principalTable: "menus",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);

            migrationBuilder.AddForeignKey(
                name: "FK_role_menus_roles_RoleId",
                table: "role_menus",
                column: "RoleId",
                principalTable: "roles",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);

            migrationBuilder.AddForeignKey(
                name: "FK_wallpapers_categories_CategoryId",
                table: "wallpapers",
                column: "CategoryId",
                principalTable: "categories",
                principalColumn: "Id",
                onDelete: ReferentialAction.Restrict);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_role_menus_menus_MenuId",
                table: "role_menus");

            migrationBuilder.DropForeignKey(
                name: "FK_role_menus_roles_RoleId",
                table: "role_menus");

            migrationBuilder.DropForeignKey(
                name: "FK_wallpapers_categories_CategoryId",
                table: "wallpapers");

            migrationBuilder.DropPrimaryKey(
                name: "PK_wallpaper_tags",
                table: "wallpaper_tags");

            migrationBuilder.DropPrimaryKey(
                name: "PK_role_menus",
                table: "role_menus");

            migrationBuilder.DropIndex(
                name: "IX_RoleMenu_IsDeleted",
                table: "role_menus");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "10506d2a-36f0-4c35-a0b0-e34344cacc4f");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "11a967b4-2289-4179-bb1e-50df3973d1df");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "14e108ef-caa2-4733-b8b8-aac1184bf945");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "277cb688-abaa-4091-8bb1-b86663c220dd");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "2c02a95d-21cc-44df-a572-9b643ecc9966");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "2dbc5a5b-3d6f-4a76-98f6-9cac30c7a0b4");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "368df1ec-0a1b-4b4a-9c8c-9014d00e18bf");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "497620cb-0d9b-418e-ba73-06b9cbedcf36");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "66b4e109-d861-4608-9ee5-8dd84730bd8b");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "9812bcd0-3249-4c01-8dd1-5a09333237c1");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "b09e957b-4da7-4226-91f9-79770bbb9a02");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "b70f521b-5853-4421-bb9a-54fe4256f144");

            migrationBuilder.DeleteData(
                table: "roles",
                keyColumn: "Id",
                keyValue: "756d7b3a-46f0-44d8-8b3f-10542534f64a");

            migrationBuilder.DeleteData(
                table: "roles",
                keyColumn: "Id",
                keyValue: "81161183-3635-47a8-bb81-06f9bd23e001");

            migrationBuilder.DeleteData(
                table: "roles",
                keyColumn: "Id",
                keyValue: "aa1caf86-ab44-4197-b463-8b3e329f017f");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "37a02ef9-23e0-40f6-af12-1d8913ac0d4f");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "3ea3e877-7c9d-4158-b671-1eac55a7ba48");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "c2e9bdc6-be4d-4c36-ad28-932c0ac71945");

            migrationBuilder.DeleteData(
                table: "menus",
                keyColumn: "Id",
                keyValue: "cfaa92ac-2cac-4c7a-9fac-368f17a8df7e");

            migrationBuilder.RenameTable(
                name: "wallpaper_tags",
                newName: "wallpaper_and_tags");

            migrationBuilder.RenameTable(
                name: "role_menus",
                newName: "RoleMenu");

            migrationBuilder.AlterColumn<bool>(
                name: "IsDeleted",
                table: "RoleMenu",
                type: "bit",
                nullable: false,
                oldClrType: typeof(bool),
                oldType: "bit",
                oldDefaultValue: false,
                oldComment: "软删除标志");

            migrationBuilder.AlterColumn<string>(
                name: "Id",
                table: "RoleMenu",
                type: "nvarchar(450)",
                nullable: false,
                defaultValue: "",
                oldClrType: typeof(string),
                oldType: "nvarchar(max)",
                oldNullable: true);

            migrationBuilder.AlterColumn<string>(
                name: "MenuId",
                table: "RoleMenu",
                type: "nvarchar(36)",
                nullable: false,
                oldClrType: typeof(string),
                oldType: "nvarchar(36)",
                oldMaxLength: 36,
                oldComment: "菜单ID");

            migrationBuilder.AlterColumn<string>(
                name: "RoleId",
                table: "RoleMenu",
                type: "nvarchar(36)",
                nullable: false,
                oldClrType: typeof(string),
                oldType: "nvarchar(36)",
                oldMaxLength: 36,
                oldComment: "角色ID");

            migrationBuilder.AddPrimaryKey(
                name: "PK_wallpaper_and_tags",
                table: "wallpaper_and_tags",
                column: "Id");

            migrationBuilder.AddPrimaryKey(
                name: "PK_RoleMenu",
                table: "RoleMenu",
                column: "Id");

            migrationBuilder.InsertData(
                table: "menus",
                columns: new[] { "Id", "Component", "CreateAt", "Icon", "IsEnabled", "Name", "ParentId", "Path", "Sort", "UpdateAt" },
                values: new object[,]
                {
                    { "69eab353-82e5-4510-8289-b061029d673c", "dashboard/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4516), "House", true, "仪表盘", null, "/dashboard", 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "88430d82-5397-4808-b2c3-50e0a72b6636", null, new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4575), "Tools", true, "系统工具", null, null, 5, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "8bf4d815-5bc6-4d41-babe-9d9a27a4e5eb", null, new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4554), "Document", true, "内容管理", null, null, 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "b3ad11e7-9101-46bd-bcf7-7b54fc0a1d97", null, new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4541), "Setting", true, "系统管理", null, null, 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "e4052b6f-ec9b-4712-8e2f-b20b07760c29", null, new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4568), "DataLine", true, "数据统计", null, null, 4, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) }
                });

            migrationBuilder.InsertData(
                table: "roles",
                columns: new[] { "Id", "CreateAt", "Description", "IsEnabled", "RoleCode", "RoleName", "UpdateAt" },
                values: new object[,]
                {
                    { "8308ca55-8e2e-4d89-8bc7-b1dcccf9b41b", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(8557), "负责审核和管理的壁纸的角色", true, "wallpaper_auditor", "壁纸审核员", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "e213eaff-1038-438f-aeba-d0eb2445e557", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(8541), "系统超级管理员，拥有所有权限", true, "super_admin", "超级管理员", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "ea3815c4-72e6-40e4-bc8c-00d5a71ce32c", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(8554), "系统管理员", true, "admin", "管理员", new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) }
                });

            migrationBuilder.InsertData(
                table: "menus",
                columns: new[] { "Id", "Component", "CreateAt", "Icon", "IsEnabled", "Name", "ParentId", "Path", "Sort", "UpdateAt" },
                values: new object[,]
                {
                    { "0456f792-07e9-433b-a0c0-63348eb800eb", "content/category/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4562), "Collection", true, "分类管理", "8bf4d815-5bc6-4d41-babe-9d9a27a4e5eb", "/content/category", 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "38b9332e-c128-475e-ab7c-926ab199bffd", "system/user/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4545), "User", true, "用户管理", "b3ad11e7-9101-46bd-bcf7-7b54fc0a1d97", "/system/user", 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "51f6f806-d97e-4dc9-92fb-ffee6b0807a8", "tools/monitor/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4581), "Monitor", true, "系统监控", "88430d82-5397-4808-b2c3-50e0a72b6636", "/tools/monitor", 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "549916d1-8207-456b-b553-f58fe4af1f92", "system/permission/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4551), "Lock", true, "权限管理", "b3ad11e7-9101-46bd-bcf7-7b54fc0a1d97", "/system/permission", 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "56db9ce0-5957-4f75-82b1-84dda20268e6", "tools/log/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4578), "List", true, "系统日志", "88430d82-5397-4808-b2c3-50e0a72b6636", "/tools/log", 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "67c9ebc4-6ddd-48e9-bf1f-9ab04ac8ec12", "statistics/sales/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4574), "Wallet", true, "销售统计", "e4052b6f-ec9b-4712-8e2f-b20b07760c29", "/statistics/sales", 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "73f06219-6e8b-4bf2-bd62-0b0d30eba629", "system/role/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4548), "UserFilled", true, "角色管理", "b3ad11e7-9101-46bd-bcf7-7b54fc0a1d97", "/system/role", 2, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "7408ec9d-9ee9-4b88-b6f7-f01cbb9501e5", "content/tag/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4565), "PriceTag", true, "标签管理", "8bf4d815-5bc6-4d41-babe-9d9a27a4e5eb", "/content/tag", 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "cdf941ff-1227-42a2-864c-4d7592deb576", "statistics/visit/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4571), "View", true, "访问统计", "e4052b6f-ec9b-4712-8e2f-b20b07760c29", "/statistics/visit", 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "dffcab4b-4ca4-4ec9-afbe-e1062a809010", "content/article/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4559), "Reading", true, "文章列表", "8bf4d815-5bc6-4d41-babe-9d9a27a4e5eb", "/content/article", 1, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) },
                    { "e4ae7e8d-cec1-498c-859d-8e98097a995c", "tools/backup/index", new DateTime(2025, 10, 9, 17, 41, 9, 332, DateTimeKind.Local).AddTicks(4583), "DataAnalysis", true, "数据备份", "88430d82-5397-4808-b2c3-50e0a72b6636", "/tools/backup", 3, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified) }
                });

            migrationBuilder.AddForeignKey(
                name: "FK_RoleMenu_menus_MenuId",
                table: "RoleMenu",
                column: "MenuId",
                principalTable: "menus",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);

            migrationBuilder.AddForeignKey(
                name: "FK_RoleMenu_roles_RoleId",
                table: "RoleMenu",
                column: "RoleId",
                principalTable: "roles",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);
        }
    }
}
